﻿using HuaHan.WorkTicket.Domain.Model;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuaHan.WorkTicket.Domain.Repositories.EntityFramework.ModelConfigurations
{
    public class StyleCategoryConfiguration : BaseConfiguration<StyleCategory>
    {
        public StyleCategoryConfiguration()
            : base()
        {
            this.ToTable("tblStyleCategory");
            this.Property(c => c.Name)
                .IsRequired()
                .HasMaxLength(20);
            this.Property(c => c.Description)
                .HasMaxLength(50);

        }
    }
}
